﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Data.Objects.DataClasses;

namespace Pharmacy.Data.Core
{
    public interface ILockingControl : IDisposable
    {
        void Lock(EntityObject entity);
        void Lock(IEnumerable<EntityObject> listEntity);
        void UnLock(EntityObject entity);
        void UnLock(IEnumerable<EntityObject> listEntity);
        void UnLockAll();
    }
}
